Highlighting Buildings

This code will highlight a building on hover.

osmb.on('pointermove', function(e) {
  var id = osmb.getTarget(e.detail.x, e.detail.y, function(id) {
    if (id) {
      osmb.highlight(id, '#f08000');
    } else {
      osmb.highlight(null);
    }
  });
});